package com.linb.pan.server.modules.user.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.linb.pan.web.serializer.IdEncryptSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "用户基本信息实体")
public class UserInfoVO implements Serializable {

    private static final long serialVersionUID = 8735165639795065937L;

    @ApiModelProperty(value = "用户名称")
    private String username;

    @ApiModelProperty(value = "用户根目录id")
    @JsonSerialize(using = IdEncryptSerializer.class) //防止前端精度丢失, 将Long自动转为String
    private Long rootFileId;

    @ApiModelProperty(value = "用户根目录名称")
    private String rootFilename;

}
